
JOP replication data and source code

Corder, J. Kevin and Christina Wolbrecht. 2006. "Political Context and the Turnout of New Women Voters after Suffrage." Journal of Politics 68(1):34-49

******************************

Files in this dataverse

jop_merge20.dta : Pooled census and election returns, 1920
jop_merge.24.dta : Pooled census and election returns, 1924

jop_results20.dta: Posterior medians, 1920 (turnout)
jop_results24.dta : Posterior medians, 1924 (turnout)

mcmc_pool_1920.r: R language to execute 1920 MCMC simulation
mcmc_pool_1924.r : R language to execute 1924 MCMC simulation

MCMChierNXC.cc : C++ code (add to /src directory)
MCMChierEXC.R : R language (add to /r directory)

jop_1920_full_posterior
jop_1924_full_posterior 

****************

How to replicate the results

Method 1: Run the MCMC Simulation

Copy and unpack MCMCPack version 0.3-11 to your local LINUX workstation
Copy MCMChierNXC.cc to MCMCPack/src
Copy MCMCchierEXC.R to MCMCPack/r

Build and install the revised package
 tar -cvf test.tar MCMCpack
 gzip test.tar
 mv test.tar.gz MCMCpack_0.3-1t.tar.gz
 R INSTALL MCMCpack_0.3-1t.tar.gz

Copy and save the merged data (jop_merge20.dta)

Open R
Load foreign and MCMCPack
Execute mcmc_pool_1920.r
Save the posterior

Note: since this based on R packages circa 2003, this probably won't work

*****************

Method 2: Download the results of the simulation

Download the posterior (jop_1920_posterior.Rdata) (~120 MB)

Start R and load the .Rdata file

object "posterior" [2500 rows, 5932 columns]
p0 [columns 1-2959]: 2500 draws from the chain of estimated female turnout for each of 2,959 observations
p1 [columns 2960-5918] 2500 draws from the chain of estimated male turnout for each of 2,959 observations
female turnout regression coefficients [columns 5919-5924]
male turnout regression coefficients [columns 5925-5930]

******************

Method 3:  Download the estimates 

Download the posterior medians for male and female turnout (STATA data sets)
Merge by row with the census and elections returns (also STATA data sets)
